package com.yourenbang.transaction.api.service.pay;

import com.yourenbang.lingyun.constants.enums.ServiceNameConstants;
import com.yourenbang.lingyun.core.message.Result;
import com.yourenbang.transaction.api.model.dto.pay.TradeQueryDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 支付
 */
@FeignClient(value = ServiceNameConstants.SERVICE_TRANSACTION)
@RequestMapping("/service/pay/")
public interface PayApiService {

    /**
     * 查询是否支付成功
     */
    @RequestMapping(value = "/trade/query")
    Result<Boolean> tradeQuery(@RequestBody TradeQueryDTO queryDTO);


}
